<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>类选择器</title>
    <style>
        /* 使用类选择器 */
        .red {
            color: red;
        }
        .blue{
            color: blue;
        }
        .pink{
            color: pink;
        }
        /* 利用类选择器制作盒子 */
        .red-box {
            width: 100px;
            height: 100px;
            background-color: red;
        }
        .green-box{
            width: 100px;
            height: 100px;
            background-color: green;
        }
        /* 多类选择器的使用 */
        .size-box {
            width: 250px;
            height: 250px;
            font-size: 50px;
            background-color: black;
        }
        .color-box{
            color:rgb(95, 17, 168);

        }
        /* id选择器 */
        #center{
            text-align: center;
        }
    </style>
</head>
<body>
    <ul>
        <li class="red">前途无量</li>
        <li class="blue">大公无私</li>
        <li class="pink">财源滚滚</li>
        <li>遥遥无期</li>

        <div class="red-box"></div>
        <div class="green-box"></div>
        <div class="red-box"></div>

        <div class="size-box color-box ">多类型盒子</div>

        <div id="center">
            <p class="red">黄金万两</p>
            <p class="blue">常于家中</p>
            <p class="red">招人羡慕</p>

        </div>
    </ul>
</body>
</html>